﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en" id="public_head">
    <meta charset="UTF-8">
    <title>血库管理系统 之 医生管理</title>
    <link rel="stylesheet" th:href="@{/css/public.css}" href="../css/public.css"/>
    <link rel="stylesheet" th:href="@{/css/style.css}" ref="../css/style.css"/>
</head>
<body>
<!--头部-->
<header class="publicHeader" id="public_header">
    <h1>血库管理系统 之 医生管理</h1>
    <div class="publicHeaderR">
        <p><span></span><span style="color: #fff21b"> [[${session.loginUser.d_name}]]</span> , 欢迎你！</p>
        <a th:href="@{/logout}" href="../main/login.html">退出</a>
    </div>
</header>
<!--时间-->
<section class="publicTime" th:replace="main/public :: #public_time">
</section>
<!--主体内容-->
<section class="publicMian ">
    <div class="left" id="public_left">
        <h2 class="leftH2"><span class="span1"></span>功能列表 <span></span></h2>
        <nav>
            <ul class="list">
                <li th:id="${activeUri == 'patient' ? 'active': ''}"><a
                        th:href="@{/doctors/} + ${session.loginUser.d_id} ">个人信息查看</a></li>
                <li th:id="${activeUri == 'patient' ? 'active': ''}"><a
                        th:href="@{/doctorToPatients/} + ${session.loginUser.d_id} ">查看病人信息</a></li>
                <li th:id="${activeUri == 'patient' ? 'active': ''}"><a
                        th:href="@{/doctorApply/} + ${session.loginUser.d_id} ">申请用血</a></li>
                <li th:id="${activeUri == 'pwd' ? 'active': ''}"><a th:href="@{/doctor/pwd}"
                                                                    href="../main/password.html">密码修改</a></li>
                <li><a th:href="@{/logout}" href="../main/login.html">退出系统</a></li>
            </ul>
        </nav>
    </div>
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>个人信息管理页面 >> 个人信息修改页面</span>
        </div>
        <div class="providerAdd">
            <form id="updateForm" th:action="@{/doctorUpdate}" th:method="post">
                <input type="hidden" name="_method" value="put">
                <input th:type="hidden" name="d_id" th:value="${byIdDoctorMap.d_id}">
                <div class="">
                    <label for="d_name">姓名：</label>
                    <input type="text" name="d_name" id="d_name" th:value="${byIdDoctorMap.d_name}" placeholder=""/>
                    <span >*</span>
                </div>
                <div>
                    <label for="d_sex">性别：</label>
                    <input type="text" name="d_sex" id="d_sex" th:value="${byIdDoctorMap.d_sex}" placeholder=""/>
                    <span>请输入1 或者 2,男为1,女为2</span>
                </div>
                <div>
                    <label for="d_age">年龄：</label>
                    <input type="text" name="d_age" id="d_age" th:value="${byIdDoctorMap.d_age}" placeholder=""/>
                    <span>*</span>
                </div>
                <div>
                    <label for="d_department">科室：</label>
                    <input type="text" name="d_department" id="d_department" th:value="${byIdDoctorMap.d_department}" placeholder=""/>
                    <span>*</span>
                </div>
                <div>
                    <label for="d_address">地址：</label>
                    <input type="text" name="d_address" id="d_address" th:value="${byIdDoctorMap.d_address}" placeholder=""/>
                    <span>*</span>
                </div>
                <div>
                    <label for="d_tel">联系电话：</label>
                    <input type="text" name="d_tel" id="d_tel" th:value="${byIdDoctorMap.d_tel}" placeholder=""/>
                    <span>*</span>
                </div>
                <input th:type="hidden" name="d_password" th:value="${byIdDoctorMap.d_password}">
                <div class="providerAddBtn">
                    <input type="button" value="保存" onclick="$('#updateForm').submit()"/>
                    <input type="button" value="返回" onclick="history.back(-1)"/>
                </div>
            </form>
        </div>

    </div>
</section>

<footer class="footer" th:replace="main/public :: #public_footer">
</footer>

<script th:src="@{/webjars/jquery/3.3.1/jquery.js}" src="../js/jquery.js"></script>

</body>
</html>